/**
 * @Author: 焦质晔
 * @Date: 2019/6/20
 * @Last Modified by: mikey.zhaopeng
 * @Last Modified time: 2019-12-15 15:21:28
 */
 import axios from '@/api/fetch';
 import SERVER from '@/api/server';

 // 列表 /headquartersWarehousing/listRecordDetail
 export const queryList = (params) => axios.post(`${SERVER.WHOLESALES}/headquartersWarehousing/listRecordDetail`, params)
 // 导出 /headquartersWarehousing/exportDetail
 export const exportExcel = (params) => axios.post(`${SERVER.WHOLESALES}/headquartersWarehousing/exportDetail`, params, {
   responseType: 'blob'
 });
 // 车辆配置五级选择
 export const vehicleConfig = (id, params) => axios.get(`${SERVER.BASEDATA}/vehicleProduct/productInfo/productTreeNew`, {
   params: {
     type: id,
     level: 6,
     ...params
   }
 });
 // 上级仓库列表
 export const getFactoryWarehouseList = (params) => axios.get(`${SERVER.WHOLESALES}/tmVsSubWarehouse/getWarehouseList`, {
   params
 })
 // 仓库选择列表
 export const getWarehouseList = (params) => axios.get(`${SERVER.WHOLESALES}/ttVsTransfer/getWarehouseList`, {
   params
 })
export const fpList = (params) => axios.post(`${SERVER.WHOLESALES}/ttVsDeliveryOrder/page/fp`, params)
//  打标识
export const confirmQualified = (params) => axios.post(`${SERVER.WHOLESALES}/tmVehicle/confirmQualified`, params)
// 配车
export const confirmAutowiredPerson = (params) => axios.post(`${SERVER.WHOLESALES}/ttVsDeliveryOrder/confirmAutowiredPerson`, params)
// 获取订单细分类型
export const getNotPage = (params) => axios.get(`${SERVER.WHOLESALES}/fiOrderTypeSub/searchFiOrderTypeSubDTOListNotPage`, { params })
// 获取所有资金类型
export const gettmFiAccountType = (params) => axios.post(`${SERVER.WHOLESALES}/tmFiAccountType/list`, params)
//  锁定/解锁
export const confirmLock = (params) => axios.post(`${SERVER.WHOLESALES}/tmVehicle/confirmLock`, params)
